package com.wolfking.demo;

import java.util.concurrent.atomic.LongAccumulator;

public class LoopDemo {

    public static void main(String[] args) {
        int k = 1;
        outer:
        for (; ; ) {
            for (int i = 0; i < k; i++) {
                if (k == 10) {
                    break outer;
                }
            }

            k++;
            System.out.println(k);
        }
        LongAccumulator longAccumulator =  new LongAccumulator((a,b)->a+b+1,100);
        longAccumulator.accumulate(100);
        System.out.println(longAccumulator.get());
    }
}
